<template>
    <div class="main_box" style="padding:10px">
      <div class="add_wrap">
        <el-form label-width="200px">
          <div class="tit">
            <h2>基础信息</h2>
            <el-button type="success" plain size="small" icon="fa fa-mail-forward" @click="returnList">返回</el-button>
          </div>
          <el-row>
            <el-form-item label="模板名称:">
              <span>{{ dataInfo.modelName }}</span>
            </el-form-item>
            <el-form-item label="二维码宽度:">
              <span>{{ dataInfo.beeperUrlWidth }}</span>
            </el-form-item>
            <el-form-item label="二维码宽度:">
              <span>{{ dataInfo.beeperUrlHeight }}</span>
            </el-form-item>
            <el-form-item label="二维码x轴位置:">
              <span>{{ dataInfo.beeperUrlX }}</span>
            </el-form-item>
            <el-form-item label="二维码y轴位置:">
              <span>{{ dataInfo.beeperUrlY }}</span>
            </el-form-item>
            <el-form-item label="文字大小:">
              <span>{{ dataInfo.describeSize}}</span>
            </el-form-item>
            <el-form-item label="文字x轴位置:">
              <span>{{ dataInfo.describeX }}</span>
            </el-form-item>
            <el-form-item label="文字x轴位置:">
              <span>{{ dataInfo.describeY }}</span>
            </el-form-item>
            <el-form-item label="创建人:">
              <span>{{ dataInfo.createUserName }}</span>
            </el-form-item>
            <el-form-item label="创建时间:">
              <span>{{ dataInfo.createDate }}</span>
            </el-form-item>
            <el-form-item label="修改人:">
              <span>{{ dataInfo.modifyUserName }}</span>
            </el-form-item>
            <el-form-item label="修改时间:">
              <span>{{ dataInfo.modifyDate }}</span>
            </el-form-item>
            <el-form-item label="背景图:">
              <el-image style="width: 150px;" title="点击可预览"
                      :src="dataInfo.backgrounds" alt=""
                      :preview-src-list="[dataInfo.backgrounds]"></el-image>
              </el-form-item>
          </el-row>
        </el-form>
      </div>
    </div>
  </template>

  <script>
  import PosterModelApi from '@/api/operation/posterModel';
  export default {
    data() {
      return {
        dataInfo: {},
      };
    },
    computed: {},
    mounted() {
      this.getData()
    },
    methods: {
      getData() {
        PosterModelApi.getPosterModelInfo({ id: this.$route.query.id }).then(res => {
          this.dataInfo = res.data
        })
      },
      returnList() {
        this.$store.dispatch('delView', this.$route);
        this.$router.back()
      }
    },

  }

  </script>
  <style lang="scss" scoped>
@import "@/assets/css/views/add.scss";
</style>
